package com.lx.design.demo.ddd.domain;

import lombok.Data;

import java.math.BigDecimal;
import java.util.UUID;

/**
 * @author lx
 * @description 子订单
 * @date 2021/2/5 13:42
 */
@Data
public class OrderItem {
    private UUID productId;
    private BigDecimal price;

    public OrderItem(final Product product){
        this.productId = product.getId();
        this.price = product.getPrice();
    }
}
